//
//  Res.m
//  Taste
//
//  Created by 徐昊 on 16/8/31.
//  Copyright © 2016年 徐昊. All rights reserved.
//

#import "Res.h"
#import "Content.h"

@implementation Res

- (void)setValue:(id)value forKey:(NSString *)key {
    [super setValue:value forKey:key];
    if ([key isEqualToString:@"content"]) {
        NSMutableArray *arr = [NSMutableArray array];
        for (NSDictionary *dic in value) {
            Content *model = [Content modelWithDic:dic];
            [arr addObject:model];
        }
        _content = arr;
    }
}

+ (NSDictionary *)objectClassInArray{
    return @{@"res" : [Res class]};
}
@end
